package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.FeedBackRepository;
import com.eduction.modules.system.entity.FeedBack;
import com.eduction.service.FeedBackService;
@Service
public class FeedBackServiceImpl implements FeedBackService{

	@Autowired
	private FeedBackRepository feedBackRepository;
	
	@Override
	public String saveFeedBack(FeedBack f) {
		return this.feedBackRepository.saveFeedBack(f);
	}

	@Override
	public FeedBack queryFeedBackByExpert(String expertId, String schoolId) throws SQLException {
		return this.feedBackRepository.queryFeedBackByExpert(expertId, schoolId);
	}

	@Override
	public FeedBack queryFeedBackById(String id) throws SQLException {
		return this.feedBackRepository.queryFeedBackById(id);
	}

	@Override
	public List<FeedBack> queryFBsByExpert(String expertId) throws SQLException {
		return this.feedBackRepository.queryFBsByExpert(expertId);
	}

	@Override
	public List<FeedBack> queryFeedBackBySchoolId(String schoolId) throws SQLException{
		return this.feedBackRepository.queryFeedBackBySchoolId(schoolId);
	}

}
